package ooday03;

public class Dog extends Animal implements Swim{
    Dog(){}
    Dog(String color,int age,String name){
        super(color,age,name);
    }
    void look(){
        System.out.println(name+"在看家");
    }
    void eat(){
        System.out.println("有一只"+color+"的小狗,今年"+age+"岁"+",叫作:"+name+",它正在吃骨头...");
    }
    public void swim(){
        System.out.println(color+"色的狗狗"+age+"岁的"+"叫作:"+name+",正在游泳..");
    }
}
